package com.tc.plus.entity.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

/**
 * @Auther: tianchao
 * @Date: 2020/12/3 16:24
 * @Description:
 */
public enum  UserSexEnum {

    WOMAN(0,"女"),
    MAN(1,"男"),
    ;
    @EnumValue//标记数据库存的值是code
    final int code;
    final String desc;
    UserSexEnum(int code,String desc){
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }
    public String getDesc() {
        return desc;
    }
}
